cast (one's) bread upon the waters

Translations
jeter son pain sur les eaux
Definitions
To do something good or generous without expecting anything in return, often with the hope that the kindness will eventually be repaid in some way. The phrase originates from the Bible (Ecclesiastes 11:1) and suggests that acts of kindness or charity may bring rewards in the future, even if not immediately.